package main

import (
	/*"crypto/md5"
	"encoding/hex"
	. "etrgo"

	"math/rand"
	"regexp"
	"strings"*/
	"fmt"
	"path/filepath"
	"time"
)

func main() {
	/*conf, err := LoadConfig("etrgo.conf")
	if err != nil {
		return
	}
	val := conf.String("db_constr")
	fmt.Println("db_constr:", val, "end")
	fmt.Println(strings.TrimLeft("aadbc", "aad"))
	re, _ := regexp.Compile("/img/prod")
	fmt.Println(re.MatchString("/img/prod"))

	a := "/aaa/img/icon"
	b := "/aaa/img"

	if strings.HasPrefix(a, b) {
		fmt.Println(a[len(b):])
	}

	rand.Seed(time.Now().Unix())
	fmt.Println(rand.Int())

	h := md5.New()
	h.Write([]byte("admin1181"))

	fmt.Println(hex.EncodeToString(h.Sum(nil)))*/

	fmt.Println(time.Now().Format("2006/01/02 15:04:05"))
	fmt.Println(filepath.Base("D:\\webproject\\etrgo\\a.txt"))
}
